"use strict"
let beer=require("../beer");

describe("beersong",function(){

    it("return the beersong when the number is 1",function(){
        let number=1;
        let result=beer(number);
        expect(result).toEqual("1 bottle of beer on the wall, 1 bottle of beer.\n" +
        "Take one down and pass it around, no more bottles of beer on the wall.\n" +
        "No more bottles of beer on the wall, no more bottles of beer.\n" +
        "Go to the store and buy some more, 99 bottles of beer on the wall.\n")
        
    })
    it("return the beersong when the number is greater than 1",function(){
        let number=2;
        let result=beer(number);
        expect(result).toEqual("2 bottles of beer on the wall, 2 bottles of beer.\n" +
        "Take one down and pass it around, 1 bottle of beer on the wall.\n" +
        "1 bottle of beer on the wall, 1 bottle of beer.\n" +
        "Take one down and pass it around, no more bottles of beer on the wall.\n" +
        "No more bottles of beer on the wall, no more bottles of beer.\n" +
        "Go to the store and buy some more, 99 bottles of beer on the wall.\n")
        
    })
    
})